How to do hooking in Java? [closed]

Posted by chimpaburro on Super User See other posts from Super User or by chimpaburro
Published on 2012-11-23T01:47:06Z Indexed on 2012/11/23 5:01 UTC
Read the original article Hit count: 415

Filed under:
|
|
|

A hook is a process running to get data from another (more info), well the case was that I wanted to get the methods or functions using any application for access to a network, these methods are usually WSAConnect (), WSASendTo (), bind (), connect () and sendto () [these are the ones that need to get to the application].

I started testing, creating Runtime [Runtime.getRuntime (). exec (...)] with all possible methods [addShutdownHook (...);] and now I'm trying to ProcessBuilder [new ProcessBuilder (...);] and the famous BufferedReader [new BufferedReader (new InputStreamReader (proceso.getInputStream ()));] but I could not find the way to do it.

Sorry for my bad English..

© Super User or respective owner

Related posts about java

Related posts about redirection